<?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:output method="xml" version="1.0" encoding="Windows-1251"/>

    <xsl:strip-space elements="*"/>

    <xsl:template match="root">
        <xsl:value-of select="document('http://localhost/xml/test.xml')/root/node"/>
    </xsl:template>
</xsl:stylesheet>